package cn.jszx.core.bean;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by karakapi on 15-9-16.
 * 测试用bean
 */
public class Test implements Serializable {
    private String name;
    private Long namber;
    private Date testTime;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getTestTime() {
        return testTime;
    }

    public void setTestTime(Date testTime) {
        this.testTime = testTime;
    }

    public Long getNamber() {
        return namber;
    }

    public void setNamber(Long namber) {
        this.namber = namber;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Test)) return false;

        Test test = (Test) o;

        if (getName() != null ? !getName().equals(test.getName()) : test.getName() != null) return false;
        if (getNamber() != null ? !getNamber().equals(test.getNamber()) : test.getNamber() != null) return false;
        return !(getTestTime() != null ? !getTestTime().equals(test.getTestTime()) : test.getTestTime() != null);

    }

    @Override
    public int hashCode() {
        int result = getName() != null ? getName().hashCode() : 0;
        result = 31 * result + (getNamber() != null ? getNamber().hashCode() : 0);
        result = 31 * result + (getTestTime() != null ? getTestTime().hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "Test{" +
                "name='" + name + '\'' +
                ", namber=" + namber +
                ", testTime=" + testTime +
                '}';
    }
}
